package com.housing.common.config;


import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
@Component
public class ExceptionAdvice {

    @ExceptionHandler(Exception.class)
    private ResponseEntity handlerBizException(Exception e){
        e.printStackTrace();
        return new ResponseEntity(HttpStatus.OK);
    }
}
